home *** CD-ROM | disk | FTP | other *** search
- Path: new-news.sprintlink.net!snet!CT1!personalvision!jmartin
- From: jmartin@personalvision (Jonathan Martin)
- Newsgroups: gnu.g++.help,comp.lang.c++
- Subject: Re: [Q] I'm having a problem linking this simple one...
- Followup-To: gnu.g++.help,comp.lang.c++
- Date: 8 Apr 1996 01:31:24 GMT
- Organization: Southern New England Telephone
- Message-ID: <4k9q9c$2en0@CT1.SNET.Net>
- References: <4k9eqe$fl9@arl-news-svc-5.compuserve.com>
- NNTP-Posting-Host: 204.60.5.42
- X-Newsreader: TIN [version 1.2 PL2]
-
- Philippe Verdy (100105.3120@compuserve.com) wrote:
- : jmartin@personalvision (Jonathan Martin) s'Θcrit :
- [[ Deletia ]]
- : May be -lg++ is not enough to find your library.
- : You may also need to use the -L/usr/g++/lib or other
- : to specify where to search for libraries.
- : Beware also of what kind of library you use.
- : Don't you link with dynamic link libraries and only have a
- : static library for Curses ? if so, add a binding option
- : before the -lg++ (e.g. -dy or -dn with Sun linker).
- : Did you compile the Curses library with the same version
- : of the compiler ? if not, may be the mangling rules differ
- : from your library to your compiler.
- : Do you use the correct set of libraries (for other versions
- : of g++ for example). Check your environment variables...
- : Do you use the right version of g++ ? Try "g++ -v"...
-
- : Hope this will help.
-
- See, this is where my lack of knowledge kicks in. I though I had a grasp
- on how the compiler/linker worked with static or dynamic bindings, but maybe
- I'm missing something..
- (2 hrs. later)
- Just checked - CursesW is in libg++.a, but not libg++.so. I tries static
- with worse errors: it's not linking in curses.
-
- And I thought all I'd need is an O'reily book!
-
- Thanks for your help
- -John
-
-